package iscas.order.clients;

import iscas.order.common.CustomResult;
import iscas.order.dto.PayDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

 @FeignClient(name = "pay", url = "http://pay.demo.svc.cluster.local/api")
//@FeignClient(name = "pay", url = "http://localhost:8003/api")
public interface PayFeignClient {
    @GetMapping("/pay/topay")
     CustomResult topay(@RequestBody PayDTO payDTO);
}
